package com.school.entity.web;
/**
 * 分页实体
 * 接收	index    当前页码
 * 		pageSize 每页显示条数
 * 返回 	pageNum  从多少条开始
 * 		pageSize 每页显示条数
 * 
 *	@author	 
 *	@time
 *	@version
 */
public class Page {
	
	private Integer pageSize;//每页显示条数
	private Integer pageNum;//从多少条开始
	private Integer pageIndex;//当前页码
	
	
	public Integer getPageSize() {
		return pageSize;
	}


	public void setPageSize(Integer pageSize) {
		this.pageSize = pageSize;
	}


	public Integer getPageNum() {
		return pageNum;
	}


	public void setPageNum(Integer pageNum) {
		this.pageNum = pageNum;
	}


	public Integer getPageIndex() {
		return pageIndex;
	}


	public void setPageIndex(Integer pageIndex) {
		this.pageIndex = pageIndex;
	}


	private Integer reckonPage() {
		pageNum = (pageIndex-1) * pageSize;
		return pageNum;
	}
	
}
